package com.example.cashrefund;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;
import android.widget.Button;

public class MenuActivity extends Activity {

	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.menu_activity);
		
		Button buttonNew= (Button) findViewById(R.id.button_new_shopping);
		buttonNew.setOnClickListener(new View.OnClickListener() {

			@Override
			public void onClick(View v) {
				startNewShoppingActivity();
			}
		});
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.main, menu);
		return true;
	}


	public void startNewShoppingActivity(){
		Intent intent=new Intent(this,NewShoppingActivity.class);
		startActivity(intent);
	}
}
